package com.zxc;

import java.util.Date;

public class Test {

    public static void main(String[] args) {

        Date fist = new Date(2018);
        Date last = new Date();
        System.out.println(fist.compareTo(last));
    }
}
